import pytest
import os
from log import testw
from mail import send_mail

if __name__ == '__main__':
    pytest.main(['-s', 'zhpt.py', "--alluredir=./报告数据", "--clean-alluredir"])
    os.system("allure generate ./报告数据 -o ./测试报告 --clear")
    send_mail(['e.log','./测试报告/index.html'])
    testw()
